package study.chapter03.thread.operation;

public class TestThread {
    public static void main(String[] args) {
        System.out.println("当前线程：" + Thread.currentThread().getName());

        //未自定义名字的线程
        new Thread(() -> {
            System.out.println("当前线程：" + Thread.currentThread().getName());
        }).start();

        //自定义名字的线程
        new Thread(() -> {
            System.out.println("当前线程：" + Thread.currentThread().getName());
        }, "线程A").start();

    }
}

